<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable = no">
		<title></title>
		<link rel="stylesheet" type="text/css" href="../_public/css/css.css">
		<script type="text/javascript" src="../_public/js/jquery-2.1.4.min.js"></script>
		<script type="text/javascript" src="../_public/js/tigerUI_640.js"></script>
		<script type="text/javascript" src="//cdn.bootcss.com/angular.js/1.5.0-beta.1/angular.js"></script>
		<script type="text/javascript">
			var app = angular.module('myApp', []);
			app.controller('personCtrl', function($scope) {
			    $scope.firstName = "泰";
			    $scope.lastName = "格";
			    $scope.names = [
			        {name:'名1',country:'字1'},
			        {name:'名2',country:'字2'},
			        {name:'名3',country:'字3'}
			    ];
			    $scope.fullName = function() {
			        return $scope.firstName + " " + $scope.lastName;
			    }
			});
		</script>
	</head>
	<body>
		<div ng-app="myApp" ng-controller="personCtrl">
			名: <input type="text" ng-model="firstName"><br>
			姓: <input type="text" ng-model="lastName"><br>
			姓名: {{fullName()}}

			<ul>
				<li ng-repeat="x in names">
					{{ x.name + ', ' + x.country }}
				</li>
			</ul>
		</div>
	</body>
</html>
